<?php $action = $this->params['controller'];?>
<div class="col-xs-12 col-sm-12 col-md-8">
    <ul class="top-menu cf">
      <li><a href="/" <?php echo ($action == 'pages')?'class="active"':''?>><?php echo __('Home');?></a></li>
      <li><a href="/about_us" <?php echo ($action == 'about_us')?'class="active"':''?>><?php echo __('About us');?></a></li>
      <li>
        <a href="/products/" <?php echo ($action == 'products' || $action == 'product_brand')?'class="active"':''?>><?php echo __('Products');?></a>
        <ul class="sub-menu" style="z-index:2000 !important">
        <?php foreach($brands as $key=>$brand) : ?>
            <li>
                <!--<a href="/product_brand/view/<?php echo $brand['ProductBrand']['id'];?>">
                    <?php echo $brand['ProductBrand']['brand_name'];?>
                </a>-->
                <?php echo $this->Html->link( $brand['ProductBrand']['brand_name'. $code], array(
                  'controller' => 'product_brand',
                  'action' => 'view',
                  'id' => $brand['ProductBrand']['id'],
                  'slug' => str_replace(' ', '-', $brand['ProductBrand']['brand_name'. $code])
                ));
                ?>
            </li>
        <?php endforeach;?>
        </ul><!-- /sub-menu -->
      </li>
      <li><a href="/recipes" <?php echo ($action == 'recipes')?'class="active"':''?>><?php echo __('Recipes');?></a></li>
      <li><a href="/articles" <?php echo ($action == 'articles')?'class="active"':''?>><?php echo __('News');?></a></li>
      <li><a href="/contacts" <?php echo ($action == 'contacts')?'class="active"':''?>><?php echo __('Contact');?></a></li>
    </ul><!-- /top-menu -->
</div>